/**
 *
 */
package com.angel.mocks.dao.generic;

import javax.persistence.Entity;
import javax.persistence.OneToOne;

import com.angel.architecture.persistence.base.PersistentObject;

/**
 * @author William
 *
 */
@Entity
public class FinalExam extends PersistentObject{

	private static final long serialVersionUID = -3147259408442116565L;

	@OneToOne(optional = false)
	private Teacher teacher;

	@OneToOne(optional = false)
	private Person person;

	private Integer valueNote;

	/**
	 * @return the teacher
	 */
	public Teacher getTeacher() {
		return teacher;
	}
	/**
	 * @param teacher the teacher to set
	 */
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	/**
	 * @return the person
	 */
	public Person getPerson() {
		return person;
	}
	/**
	 * @param person the person to set
	 */
	public void setPerson(Person person) {
		this.person = person;
	}
	/**
	 * @return the valueNote
	 */
	public Integer getValueNote() {
		return valueNote;
	}
	/**
	 * @param valueNote the valueNote to set
	 */
	public void setValueNote(Integer valueNote) {
		this.valueNote = valueNote;
	}

}
